<?php
if (!isset($_POST['Inv_event'])) {
    $_POST['Inv_event'] = 0;
}
mn_field('hselect', 'ED', 'Inv_event', $_POST['Inv_event'], ';ISR#0;1', '', '', '" onchange="
	document.InvoiceProperties.action=\'_response/call.php?get=Operative/view/viewclientevent\';
	subform(\'InvoiceProperties\',\'Inv_event\');');
if ($_POST['Inv_event'] > 0) {
    $Qur = "SELECT ist_ID AS ID, ist_Name AS NAME FROM hd_isrtypes";
    mn_field('select', 'ED', 'Inv_eventtype', '', $Qur, '', '', '');
    mn_field('button', 'ED', 'Inv_eventsub', '>', $Qur, '', '', '"onclick="
	document.InvoiceProperties.action=\'_response/call.php?get=Operative/clientevent\';
	subform(\'InvoiceProperties\',\'Inv_event\');');
}